<?php

class Application_Form_LoginForm extends Zend_Form
{

    public function init()
    {
        $this->setAction('')
		     ->setMethod('post');
		 
		$login = $this->createElement('text','login',array('label'=>'Usuario'));
		$login->setRequired(true);
		 
		$senha = $this->createElement('password','senha',array('label'=>'Senha',''));
		$senha->setRequired(true);
		 
		 
		$this->addElement($login);
		$this->addElement($senha);

		$this->addElement('submit','logar',array('label'=>'Logar'));
		$this->addDisplayGroup(array($login->getName(),$senha->getName(), 'logar'),'usuario');
    }


}

